package com.mixfate.service;

import lombok.extern.slf4j.Slf4j;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

@Slf4j
@Service
@CacheConfig(cacheNames = "cacheService")
public class CacheService {

    @Cacheable(key = "#name")
    public String  get(String name) {
        log.info("{}", name);
        return "name:" + name;
    }

}
